<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 书写一个函数，判断指定数据是否存在于指定数组中
      let arr = ['杨自力', '纸片人', '小帅', '李淑殷', '昼夜']
      function rj(data) {
        return data.some((item) => (item == '纸片人' ? item : ''))
      }
      console.log(rj(arr))
    </script>
  </body>
</html>
